package com.jsoft.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangxuehan
 * @email 2302630156@qq.com
 * @date 2023/2/20
 */
public class MyVoucher implements Serializable {
    private static final long serialVersionUID = 3327141230448166016L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 凭证编号
     */
    private String no;
    /**
     * 凭证金额
     */
    private Double amount;
    /**
     * 企业id
     */
    private Integer enterpriseId;
    /**
     * 开单企业
     */
    private String enterpriseName;
    /**
     * 金融机构
     */
    private String institutyName;
    /**
     * 开单时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;
    /**
     * 到期时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date expiryTime;
    /**
     * 上链地址
     */
    private String address;
    /**
     * 凭证来源
     */
    private String source;
    /**
     * 凭证状态
     */
    private String status;

    public MyVoucher() {
    }


    public MyVoucher(Integer id, String no, Double amount, Integer enterpriseId, String enterpriseName, String institutyName, Date openTime, Date expiryTime, String address, String source, String status) {
        this.id = id;
        this.no = no;
        this.amount = amount;
        this.enterpriseId = enterpriseId;
        this.enterpriseName = enterpriseName;
        this.institutyName = institutyName;
        this.openTime = openTime;
        this.expiryTime = expiryTime;
        this.address = address;
        this.source = source;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getInstitutyName() {
        return institutyName;
    }

    public void setInstitutyName(String institutyName) {
        this.institutyName = institutyName;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public Date getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Date expiryTime) {
        this.expiryTime = expiryTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "MyVoucher{" +
                "id=" + id +
                ", no='" + no + '\'' +
                ", amount=" + amount +
                ", enterpriseId=" + enterpriseId +
                ", enterpriseName='" + enterpriseName + '\'' +
                ", institutyName='" + institutyName + '\'' +
                ", openTime=" + openTime +
                ", expiryTime=" + expiryTime +
                ", address='" + address + '\'' +
                ", source='" + source + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}